<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
    </head>
    <body>
        <h1 id="a"></h1>
 
        <script>
            var tag=document.getElementById('a');
            setInterval(function(){
                tag.innerHTML=parseInt(Math.random()*11);
 
            },100)
        </script>
    </body>
</html>